// 全局API配置
export const API_BASE_URL = 'http://localhost:8071';

// 各模块API接口
export const API_ENDPOINTS = {
  // 项目/服务相关
  project: {
    list: `${API_BASE_URL}/salon/project/list`,
    detail: `${API_BASE_URL}/salon/project/detail`,
    create: `${API_BASE_URL}/salon/project/create`,
    update: `${API_BASE_URL}/salon/project/update`,
    delete: `${API_BASE_URL}/salon/project/delete`
  },
  
  // 产品相关
  product: {
    list: `${API_BASE_URL}/salon/product/list`,
    detail: `${API_BASE_URL}/salon/product/detail`,
    create: `${API_BASE_URL}/salon/product/create`,
    update: `${API_BASE_URL}/salon/product/update`,
    delete: `${API_BASE_URL}/salon/product/delete`
  },
  
  // 会员相关
  member: {
    list: `${API_BASE_URL}/salon/member/list`,
    detail: `${API_BASE_URL}/salon/member/detail`,
    create: `${API_BASE_URL}/salon/member/create`,
    update: `${API_BASE_URL}/salon/member/update`,
    delete: `${API_BASE_URL}/salon/member/delete`
  },
  
  // 美容师相关
  beautician: {
    list: `${API_BASE_URL}/salon/beautician/list`,
    schedule: `${API_BASE_URL}/salon/beautician/schedule`,
    updateSchedule: `${API_BASE_URL}/salon/beautician/schedule/update`
  }
};

// 全局配置对象
export const GLOBAL_CONFIG = {
  apiBaseUrl: API_BASE_URL,
  timeout: 5000,
  retryCount: 3
};